package zut.edu.cn.concertticketmanagementsystem.Dao;

import org.springframework.data.jpa.repository.JpaRepository;
import zut.edu.cn.concertticketmanagementsystem.entity.User;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: cyl
 * Date: 2019/6/7
 * Time: 16:58
 * Description: No Description
 */
public interface UserDao extends JpaRepository<User ,Integer> {

    //通过用户名查询
    public List<User> findUserByUsername(String username);
    public List<User> findUserById(Long id);
}
